#include<stdio.h>
int main()
{
	int a[10] = { 1, 0, 4, 8, 12, 65, -76, 100, -45, 123 };
	int t = 0;
	
		for (int j = 0; j < 9; j++)
		{
			for (int i = 0; i < 9 - j; i++)
			{
				if (a[i]>a[i + 1])
				{
					t = a[i];
					a[i] = a[i + 1];
					a[i + 1] = t;

				}
			}
		}
		for (int i = 0; i<10; i++)
			printf("%d ", a[i]);
		    system("pause");
		printf("\n");
	

}